package com.imooc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.imooc.bo.CreateAdminInfoBO;
import com.imooc.pojo.Admin;
import com.imooc.utils.PagedGridResult;

/**
 * @author liansen
 * @create 02-13-11:43
 */
public interface AdminInfoService extends IService<Admin> {

    //创建账号
    void createAdminInfo(CreateAdminInfoBO adminInfoBO);

    //分页搜索(用pageHelper分页)
    PagedGridResult queryPage(Integer page, Integer limit, String accountName);

    //分页搜索(mybatisPlus分页)
    PagedGridResult queryPageByPlus(Integer page, Integer limit, String accountName);

    void deleteAdmin(String username);
}
